const mongoose = require('../db');
const Schema = mongoose.Schema;

const dutySchema = new Schema({
  title: { type: String, require: true },
  type: { type: String, require: true },
  year: { type: String, require: true },
  chargePerson: { type: String, require: true },
  phone: { type: String, require: true },
  createTime: { type: Date, require: true },
  fileName: { type: String, require: true }
})

const DutyModel = mongoose.model('duty', dutySchema);

module.exports = DutyModel;